package cn.xuewei.mapper;

import cn.xuewei.pojo.vo.CrouseVO;
import cn.xuewei.pojo.vo.PaidAdminVO;
import org.springframework.stereotype.Repository;

import java.math.BigDecimal;
import java.util.List;

@Repository
public interface CourseMapper {
    CrouseVO selectByBvid(String bvid);

    void updateBoughtNum(String bvid, int boughtnum);

    List<PaidAdminVO> selectAdmin();

    //修改付费课程价格
    void updatePrice(String bvid, BigDecimal price);

    //修改是否付费
    void change(String bvid, Integer paid);

    String getCourseName(String bvid);

    List<CrouseVO> recommend(String bvid);
}
